﻿using DTcms.Common;
using DTcms.Web.Mvc.UI;
using System.Web.Mvc;

namespace DTcms.Web.Mvc.Areas.Admin.Controllers
{
    public class DialogController : ManageController
    {
        protected string order_no = string.Empty;
        protected int channel_id;
        protected int id;
        protected string sidername;
        protected BaseApi _service = new BaseApi();
        protected Model.manager managerModel = new Model.manager();
        protected override void OnAuthorization(AuthorizationContext filterContext)
        {
            base.OnAuthorization(filterContext);
            managerModel = GetAdminInfo();
            this.channel_id = DTRequest.GetQueryInt("channel_id");
            this.sidername = DTRequest.GetQueryString("sidername");
            this.order_no = DTRequest.GetQueryString("order_no");
            this.id = DTRequest.GetQueryInt("id");
            ViewBag.ChannelId = this.channel_id;
            ViewBag.SiderName = this.sidername;
            ViewBag.OrderNo = this.order_no;
            ViewBag.ID = this.id;
        }
        //视频观看
        public ActionResult Dialog_Video()
        {
            string video_src = DTRequest.GetQueryString("video_src");
            ViewBag.video_src = video_src;
            return View();
        }

        //修改收货信息窗口
        public ActionResult Dialog_Accept()
        {
            return View();
        }

        //上传附件
        public ActionResult Dialog_Attach()
        {
            return View();
        }

        //频道URL配置
        public ActionResult Dialog_Channel()
        {
            return View();
        }

        //创建同类选择窗口
        public ActionResult Dialog_Choose()
        {
            return View();
        }
        
        //会员组价格
        public ActionResult Dialog_Group_Price()
        {
            return View(_service.DialogGroupPriceBind("is_lock=0", "id asc"));
        }

        //坐标地址标注
        public ActionResult Dialog_Map()
        {
            return View();
        }

        //上传图片
        public ActionResult Dialog_Picture()
        {
            return View();
        }
        
        //URL重写表达式
        public ActionResult Dialog_Rewrite()
        {
            return View();
        }
    }
}
